<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>测试页面</title>
</head>
<body>
  <div id="app">
    <h1>{{ message }}</h1>
    <p>订单数量: {{ orders.length }}</p>
  </div>

  <script type="module">
    import { createApp, ref, onMounted } from 'vue'

    const app = createApp({
      setup() {
        const message = ref('测试页面')
        const orders = ref([
          { id: 1, name: '测试1' },
          { id: 2, name: '测试2' }
        ])

        onMounted(() => {
          console.log('Vue app mounted!')
          console.log('Orders:', orders.value)
        })

        return {
          message,
          orders
        }
      }
    })

    app.mount('#app')
  </script>
</body>
</html>
